.class Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$2;
.super Ljava/lang/Object;
.source "PictureGalleryActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->initWidgetsActions()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 173
    iput-object p1, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 6
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 177
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # invokes: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->getActivity()Landroid/app/Activity;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$500(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Landroid/app/Activity;

    move-result-object v2

    const-string v3, "CommunityPictureGalleryClickChangeSelect"

    invoke-static {v2, v3}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 179
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCheckBox:Landroid/widget/CheckBox;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$200(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Landroid/widget/CheckBox;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v1

    .line 180
    .local v1, "isChecked":Z
    if-eqz v1, :cond_32

    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSelectedCount:I
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$600(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)I

    move-result v2

    const/16 v3, 0x9

    if-lt v2, v3, :cond_32

    .line 181
    const v2, 0x7f0c009e

    invoke-static {v2}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    .line 182
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCheckBox:Landroid/widget/CheckBox;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$200(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Landroid/widget/CheckBox;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 196
    :goto_31
    return-void

    .line 186
    :cond_32
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mViewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$700(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Landroid/support/v4/view/ViewPager;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/view/ViewPager;->getCurrentItem()I

    move-result v0

    .line 187
    .local v0, "curPos":I
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$000(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/brixd/niceapp/community/model/PictureModel;

    invoke-virtual {v2, v1}, Lcom/brixd/niceapp/community/model/PictureModel;->setIsChecked(Z)V

    .line 188
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    const/4 v3, 0x1

    # setter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mIsDirty:Z
    invoke-static {v2, v3}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$802(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;Z)Z

    .line 190
    if-eqz v1, :cond_59

    .line 191
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # ++operator for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSelectedCount:I
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$604(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)I

    goto :goto_31

    .line 193
    :cond_59
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # --operator for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSelectedCount:I
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$606(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)I

    goto :goto_31
.end method
